package com.gzhryc.shared_device.oem.code.profit.dao.db;

import com.gzhryc.common.NumberTools;
import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 项目钱包
 *
 */
@Table(name = "project_wallet")
public class ProjectWallet implements Serializable {

	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Column
	protected Integer type;

	@PrimaryKey
	@Column(name = "account_group_id", notNull = true, note = "账号组ID")
	protected Long accountGroupId;

	@Column(notNull = true, note = "名称")
	protected String name;

	@Column(notNull = true,defVal = "0", note = "钱包金额，单位：厘")
	protected Long money;

	@Column(name = "debt_money",notNull = true, defVal = "0", note = "钱包欠款，单位：厘")
	protected Long debtMoney;

	@Column(name = "update_date", autoUpdateTime = true)
	protected Date updateDate;

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getAccountGroupId() {
		return accountGroupId;
	}

	public void setAccountGroupId(Long accountGroupId) {
		this.accountGroupId = accountGroupId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getMoney() {
		return money;
	}

	public void setMoney(Long money) {
		this.money = money;
	}

	public Long getDebtMoney() {
		return debtMoney;
	}

	public void setDebtMoney(Long debtMoney) {
		this.debtMoney = debtMoney;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getMoneyStr() {
		return NumberTools.getMoneyLiStr(this.money);
	}

	public String getDebtMoneyStr() {
		return NumberTools.getMoneyLiStr(this.debtMoney);
	}
}
